package com.example.petchating

import com.example.petchating.screens.GameScreen
import com.example.petchating.network.ChatHistoryRepository
import com.example.petchating.network.ChatService
import com.example.petchating.network.EmotionService
import ktx.app.KtxGame
import ktx.app.KtxScreen

class Main(
    private val chatService: ChatService,
    private val historyRepo: ChatHistoryRepository,
    private val analyzeEmotionService: EmotionService
) : KtxGame<KtxScreen>() {
    override fun create() {
        println("ChatService: $chatService")
        println("ChatHistoryRepo: $historyRepo")

        // 继续初始化 GameScreen
        addScreen(GameScreen(this, chatService,historyRepo,analyzeEmotionService))
        setScreen<GameScreen>()
    }
}
